//
//  MOEntryViewController.m
//  FastDoctor
//
//  Created by 冯龙飞 on 16/5/21.
//  Copyright © 2016年 冯龙飞. All rights reserved.
//

#import "MOEntryViewController.h"


@interface MOEntryViewController ()

@property(nonatomic, strong) UIImageView * imageView;

@end

@implementation MOEntryViewController


- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"nav_button_back_01"] style:UIBarButtonItemStylePlain target:self action:@selector(back)];
    
    self.imageView.image = [UIImage imageNamed:@"entry"];
    
}

//重写返回按钮,判断是否打开菜单侧滑
- (void)back{
    [self.navigationController popViewControllerAnimated:YES];
    [NQNavVc judgeMenuOpen];
}

// 懒加载一个imageView
- (UIImageView *)imageView {
    
    if (_imageView == nil) {
        
        _imageView = [[UIImageView alloc]init];
        
        _imageView.frame = CGRectMake(0, 0, self.view.bounds.size.width, self.view.bounds.size.height - 64);
        
        [self.view addSubview:_imageView];
    }
    return _imageView;
}

@end
